package com.wonders.springboot.consumerfeignwithhystrixdemo.controller;

import com.wonders.springboot.consumerfeignwithhystrixdemo.service.DemoConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class DemoFeignController {
    @Resource
    DemoConsumerService demoService;
    @GetMapping("/feign/sayhi")
    public String sayhi(){
        return demoService.sayhi();
    }
}
